﻿using System;
using System.ComponentModel.DataAnnotations;
namespace Manager.Model.Admin
{
    /// <summary>
    /// M_Stylist:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class M_Stylist
    {
        public M_Stylist()
        { }
        #region Model
        private int _stylistid;
        private string _stylistname;
        private string _stylistdesc;
        private string _stylisttel;
        private int? _stylistshopid;
        private string _stylistimage;
        private int? _stylisttypeid;
        private bool _istop = false;
        private bool _isvalid = true;
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="编号")]
        public int StylistID
        {
            set { _stylistid = value; }
            get { return _stylistid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "名师名称")]
        [StringLength(50)]
        [Required]
        public string StylistName
        {
            set { _stylistname = value; }
            get { return _stylistname; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "名师描述")]
        public string StylistDesc
        {
            set { _stylistdesc = value; }
            get { return _stylistdesc; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "联系方式")]
        [RegularExpression(@"(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}", ErrorMessage = "请输入正确的电话号码")]
        public string StylistTel
        {
            set { _stylisttel = value; }
            get { return _stylisttel; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="所属店面")]
        public int? StylistShopID
        {
            set { _stylistshopid = value; }
            get { return _stylistshopid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "名师照片")]
        public string StylistImage
        {
            set { _stylistimage = value; }
            get { return _stylistimage; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "类别名称")]
        public int? StylistTypeID
        {
            set { _stylisttypeid = value; }
            get { return _stylisttypeid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "首页显示")]
        public bool IsTop
        {
            set { _istop = value; }
            get { return _istop; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "是否有效")]
        public bool IsValid
        {
            set { _isvalid = value; }
            get { return _isvalid; }
        }
        #endregion Model

    }
}

